package mn.idax.exchange.otc.exception;

import lombok.Data;

/**
 * Create by jack_huang on 2018/11/20
 */
@Data
public class DynamicException extends RuntimeException{

    private Integer code;
    private String btc;
    private String eth;
    private String usdt;



    public DynamicException() {
    }

    public DynamicException(String message) {
        super(message);
    }

    public DynamicException(String message, Throwable cause) {
        super(message, cause);
    }

    public DynamicException(Throwable cause) {
        super(cause);
    }

    public DynamicException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public DynamicException(Integer code, String message){
        super(message);
        this.code = code;
    }

    public DynamicException(Integer code){
        this.code = code;
    }
    public DynamicException(Integer code,String btc,String eth,String usdt){
        this.code = code;
        this.btc = btc;
        this.eth = eth;
        this.usdt = usdt;
    }


    public Integer getCode() {
        return code;
    }
}
